MPSetEvent

Merges event flags into a specified event group.

OSStatus MPSetEvent (
                     MPEventID event,
                     MPEventFlags flags);
event
A value of type MPEventID that specifies the ID of the event group you want to set.

flags
A 32-bit value of type MPEventFlags that contains the flags you want to merge into the event group.

function result
A result code. See Result Codes for a list of possible values.
DISCUSSION
The flags are logically ORed with the current flags in the event group. This procedure is an atomic operation to ensure that multiple updates do not get lost. If tasks are waiting on this event group, the first waiting task is unblocked.

Note that you can call this function from an interrupt handler.

VERSION NOTES
Introduced with Multiprocessing Services 2.0.

SEE ALSO
The function MPWaitForEvent .


© 1999 Apple Computer, Inc. – (Last Updated 17 Nov 99)